#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Author: Faker.Deng
Exercise after Chapter 1 Problem 7
"""
import problem7_stats as stats


# Problem 7
def import_stats():
    """
    Get median, mode and mean from a list
    :return: None
    """
    a = list(range(0, 11, 1))
    print("List =", a)
    print("Median =", stats.get_median(a))
    b = [1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 9, 9]
    print("List =", b)
    print("Mode =", stats.get_mode(b))
    c = list(range(1, 11))
    print("List =", c)
    print("Mean =", stats.get_mean(c))
    return


if __name__ == "__main__":
    import_stats()
